package com.yuanrui.subject.domain.convert;

import com.yuanrui.subject.domain.entity.SubjectAnswerBO;
import com.yuanrui.subject.domain.entity.SubjectInfoBO;
import com.yuanrui.subject.infra.basic.entity.SubjectInfo;
import com.yuanrui.subject.infra.basic.entity.SubjectRadio;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目标签表(SubjectLabel)转换器
 */
@Mapper
public interface SubjectRadioConvert {
    SubjectRadioConvert INSTANCE = Mappers.getMapper(SubjectRadioConvert.class);

    //BO转Entity
    SubjectRadio convertToBoEntity(SubjectAnswerBO subjectAnswerBO);

    //Entity转BO
    SubjectAnswerBO convertBo(SubjectRadio subjectRadio);

    //InfoList转AnswerBoList
    List<SubjectAnswerBO> convertToAnswerBo(List<SubjectRadio> subjectRadioList);

}
